#!/bin/bash
##一键推送脚本
check_status(){
  if [[ "$?" -eq 0 ]];then
    echo "[ $1 ]推送成功"
  else
    echo "[ $1 ]推送失败"
  fi
}
if [[ -z "$1" ]];then
	echo -e "请在一参传入本次更新信息"
else
	git pull
	git add -A
	git commit -m "$1"
	git push origin master
fi
